package com.xzbd.springbootmybatiesdm.service.impl;

import java.util.List;
import java.util.Map;

import com.xzbd.springbootmybatiesdm.domain.Event;
import com.xzbd.springbootmybatiesdm.mapper.EventMapper;
import com.xzbd.springbootmybatiesdm.service.EventService;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class EventServiceImpl implements EventService {

    @Autowired
    private EventMapper eventMapper;

    @Override
    public List<Event> list(Map<String,Object> params) {
        return eventMapper.list(params);
    }

    @Override
    public Integer count(Map<String, Object> params) {
        return eventMapper.count(params);
    }

    @Override
    public int update(Event event) {
        return eventMapper.update(event);
    }

    @Override
    public int del(String id) {
        return eventMapper.del(id);
    }

    @Override
    public Event getEventById(String id) {
        return eventMapper.getEventById(id);
    }

    @Override
    public int add(Event event) {
        return eventMapper.add(event);
    }

}
